﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FieldHost;

namespace Field {
	/// <summary>
	/// Industry Results
	/// </summary>
	public class Industry {

		/// <summary>
		/// Gross total number of deliveries of teams
		/// </summary>
		public MetaField<int> Deliveries {
			get;
			set;
		}

		//TODO: pending
		// Total deliveries by region and customer
		//RCDelivs(LOW_REG To HIGH_REG, LOW_INDCUST To HIGH_INDCUST) As Long 

		private readonly List<MetaField<int>> _rDelivs = new List<MetaField<int>>();
		/// <summary>
		/// Total deliveries by region
		/// </summary>
		public List<MetaField<int>> RDelivs {
			get {
				return _rDelivs;
			}
		}

		/// <summary>
		/// Gross total orders
		/// </summary>
		public int Orders {
			get;
			set;
		}

		/// <summary>
		/// Total sales for the whole industry
		/// </summary>
		public int TotalDollarSales {
			get;
			set;
		}

		//TODO: this
		// Total orders by region and customer
		//RCOrders(LOW_REG To HIGH_REG, LOW_INDCUST To HIGH_INDCUST) As Long

		private readonly List<MetaField<int>> _rOrders = new List<MetaField<int>>();
		/// <summary>
		/// Total orders by region
		/// </summary>
		public List<MetaField<int>> ROrders {
			get {
				return _rOrders;
			}
		}

		//TODO: this
		//average price per region/customer type (e.g. America/Wholesaler)
		//avgPrice(LOW_REG To HIGH_REG, LOW_CUST To HIGH_CUST) As Long

		/// <summary>
		/// Average Customer Satisfaction
		/// </summary>
		public int AvgSat {
			get;
			set;
		}
	}
}
